@Override public Location get(NamespaceMeta namespaceMeta) throws IOException { String rootDirectory = namespaceMeta.getConfig().getRootDirectory(); if (Strings.isNullOrEmpty(rootDirectory)) { // if no custom mapping was specified, then use the default namespaces location return get(namespaceMeta.getNamespaceId()); } return locationFactory.create(namespaceMeta.getConfig().getRootDirectory()); } }