private String nameToFile(final Class configClass, final Name servicePath, final String fileNameDelimiter, final String extension) {
    """
	Convert a (partial) ServicePath into a file name to access. The file names are in the format
	"cfg_group_subgroup_appid_ConfigurationClass[.ext]".
	
	@param configClass the configuration class to try and acquire
	@param servicePath the partial or complete ServicePath in Name format
	@param fileNameDelimiter the symbol used to separate cfg, group, subgroup, appid and ConfigurationClass
	@param extension the file extension, or an empty string if there is no extension
	@return the constructed file name to try and access
    """
        StringBuilder builder = new StringBuilder("cfg");
        for (final String component : servicePath) {
            builder.append(fileNameDelimiter).append(component);
        }
        builder.append(fileNameDelimiter).append(configClass.getSimpleName());
        if (!extension.isEmpty()) {
            builder.append('.').append(extension);
        }
        return builder.toString();
    }
private String nameToFile(final Class configClass, final Name servicePath, final String fileNameDelimiter, final String extension)
    {
        StringBuilder builder = new StringBuilder("cfg");
        for (final String component : servicePath) {
            builder.append(fileNameDelimiter).append(component);
        }
        builder.append(fileNameDelimiter).append(configClass.getSimpleName());
        if (!extension.isEmpty()) {
            builder.append('.').append(extension);
        }
        return builder.toString();
    }
private String nameToFile ( final Class configClass , final Name servicePath , final String fileNameDelimiter , final String extension ) { StringBuilder builder = new StringBuilder ( "cfg" ) ; for ( final String component : servicePath ) { builder . append ( fileNameDelimiter ) . append ( component ) ; } builder . append ( fileNameDelimiter ) . append ( configClass . getSimpleName ( ) ) ; if ( ! extension . isEmpty ( ) ) { builder . append ( ' ' ) . append ( extension ) ; } return builder . toString ( ) ; }
Convert a (partial) ServicePath into a file name to access. The file names are in the format
"cfg_group_subgroup_appid_ConfigurationClass[.ext]".

@param configClass the configuration class to try and acquire
@param servicePath the partial or complete ServicePath in Name format
@param fileNameDelimiter the symbol used to separate cfg, group, subgroup, appid and ConfigurationClass
@param extension the file extension, or an empty string if there is no extension
@return the constructed file name to try and access
Convert a ( partial ) ServicePath into a file name to access . The file names are in the format cfg_group_subgroup_appid_ConfigurationClass [ . ext ] .