@Override
    public String build(final RegisteredService service, final String extension) {
        return StringUtils.remove(service.getName(), ' ') + '-' + service.getId() + '.' + extension;
    }
Method creates a filename to store the service.

@param service   - Service to be stored.
@param extension - extension to use for the file.
@return - String representing file name.
core/cas-server-core-services-registry/src/main/java/org/apereo/cas/services/resource/DefaultRegisteredServiceResourceNamingStrategy.java