@Override
public GetPartResponse<String> getPart(GetPartRequest request) {
GetPartResponse<String> resp = new GetPartResponse<String>();
try {
CatalogObjectPart<String> part;
YaddaObjectID oid = request.getObject();
String type = request.getType();
if (oid.getVersion() == null)
part = curdao.findPart(oid.getId(), type);
else
part = curdao.findPart(oid, type);
resp.setPart(part);
} catch (Exception e) {
log.error("Exception caught", e);
resp.setError(new YaddaError(ERROR_CODE, "exception caught", e));
}
return resp;
}