* not known to this <code>Collection</code>.
*/
public void removeResource( Resource res ) throws XMLDBException {
try {
System.out.println("CollectionImpl.removeResource() - Getting XMLContainer");
XMLContainer container = null;
String id = res.getId();
if ( collection.hasResource(id) ) {
container = XMLContainer.forName(database, id);
container.delete();
} else {
throw new XMLDBException(ErrorCodes.NO_SUCH_RESOURCE, "the resource is not a part of this collection");
}
} catch (Exception e) {
throw new XMLDBException(ErrorCodes.VENDOR_ERROR, e.toString());