public static Optional<String> packageName(String longName) {
		if (longName.contains(".")) {
			return Optional.of(longName.substring(0,
                    longName.lastIndexOf('.')
                ).replace(" ", ""));

		} else {
			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