if (parts.length == 3)
{
DSpaceObject obj = HandleManager.resolveToObject(context.getContext(),
parts[2]);
if (obj == null)
throw new IdDoesNotExistException();
if (!(obj instanceof Item))
throw new IdDoesNotExistException();
org.dspace.content.Item item = (org.dspace.content.Item) obj;
return new DSpaceDatabaseItem(item, this.getMetadata(item), getSets(item));
}
}
catch (NumberFormatException e)
{
log.debug(e.getMessage(), e);
throw new IdDoesNotExistException();
}
catch (SQLException e)
{
throw new OAIException(e);
} catch (IOException e) {
throw new OAIException(e);
} catch (ContextServiceException e) {
throw new OAIException(e);
}
throw new IdDoesNotExistException();
}