public static String shortName(String longName) {
        String temp = longName.replace('$', '.');
        final int openBrPos = temp.indexOf('<');
        String parameters = "";
        if (openBrPos > 0) {
            parameters = temp.substring(openBrPos);
            temp = temp.substring(0, openBrPos);
        }
        if (temp.contains(".")) {
            temp = temp.substring(temp.lastIndexOf('.') + 1);
        }
        return temp + parameters;
    }
Returns the 'name' part of a long name. This is everything after the last
dot for non-parameterized types. For parameterized types the rule applies to
the part proceeding the bracket enclosed parameters e.g.
{@code long name java.util.Map<String, java.util.Date>}
returns {@code Map<String, java.util.Date>}.

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