public static Optional<String> fileToClassName(String fileName) {
		if (fileName.endsWith(".java")) {
			String className = fileName;
			className = className.replace('/', '.');
			className = className.replace('\\', '.');
			className = className.substring(0, className.length() - 5);
			return Optional.of(className);
		}
		return Optional.empty();
	}
Returns the 'package' part of a long name. This is everything before the
last dot.

@param longName The long name.
@return The package part.
common-parent/codegen/src/main/java/com/speedment/common/codegen/util/Formatting.java