private Object getReference() {
if (referenceName == null) {
throw new ConstructionException("Reference name has not been set");
}
ExecutionContext context = ExecutionContext.getContext();
if (!context.containsObject(referenceName)) {
throw new NoSuchObjectException(referenceName);
}
return context.getObject(referenceName);
}