class PMMLCompilerService {

    static String getFileName(final String fullPath) {
        String toReturn = fullPath;
        if (fullPath.contains(File.separator)) {
            toReturn = fullPath.substring(fullPath.lastIndexOf(File.separator) + 1);
        } else if (fullPath.contains("/")) {
            toReturn = fullPath.substring(fullPath.lastIndexOf('/') + 1);
        }
        return toReturn;
    }

    private  PMMLCompilerService();

}