* @param namespace the namespace of which to retrieve the resource.
* @return the resource or null if it could not be found.
*/
public URL[] getResourceRoots(final String namespace)
{
final NamespaceRegistry registry = this.getRegistry(namespace);
if (registry == null)
{
throw new NamespacesException("'" + namespace + "' is not a registered namespace");
}
final URL[] resourceRoots = registry.getResourceRoots();
if (resourceRoots == null || resourceRoots.length == 0)
{
throw new NamespacesException("No resource root(s) could be retrieved for namespace '" + namespace + "'");
}
return resourceRoots;