private static String removeLastDot ( final String pkgName ) { return pkgName . charAt ( pkgName . length ( ) - 1 ) == Characters . DOT ? pkgName . substring ( 0 , pkgName . length ( ) - 1 ) : pkgName ; }
Filters a dot at the end of the passed package name if present .