protected Object getReferencedObject(String id) { Object o = objects != null && !objects.isEmpty() ? objects.get(id) : null; if (o == null) { String msg = "The object with id [" + id + "] has not yet been defined and therefore cannot be " + "referenced. Please ensure objects are defined in the order in which they should be " + "created and made available for future reference."; throw new UnresolveableReferenceException(msg); } return o; }
protected Object getReferencedObject(String id) { Object o = objects != null && !objects.isEmpty() ? objects.get(id) : null; if (o == null) { String msg = "The object with id [" + id + "] has not yet been defined and therefore cannot be " + "referenced. Please ensure objects are defined in the order in which they should be " + "created and made available for future reference."; throw new UnresolveableReferenceException(msg); } return o; }
protected Object getReferencedObject(String id) { Object o = objects != null && !objects.isEmpty() ? objects.get(id) : null; if (o == null) { String msg = "The object with id [" + id + "] has not yet been defined and therefore cannot be " + "referenced. Please ensure objects are defined in the order in which they should be " + "created and made available for future reference."; throw new UnresolveableReferenceException(msg); } return o; }