* template not found
*/
public ObjectFactory<AbstractResourceDescriptor> removeResource(String path)
{
ObjectFactory<AbstractResourceDescriptor> resource = null;
UriPattern pattern = new UriPattern(path);
synchronized (rootResources)
{
for (Iterator<ObjectFactory<AbstractResourceDescriptor>> iter = rootResources.iterator(); iter.hasNext()
&& resource == null;)
{
ObjectFactory<AbstractResourceDescriptor> next = iter.next();
UriPattern resourcePattern = next.getObjectModel().getUriPattern();
if (pattern.equals(resourcePattern))
{
iter.remove();
resource = next;
}