public static ERRole localInstanceIn(EOEditingContext editingContext, ERRole eo) { ERRole localInstance = (eo == null) ? null : ERXEOControlUtilities.localInstanceOfObject(editingContext, eo); if (localInstance == null && eo != null) { throw new IllegalStateException( "You attempted to localInstance " + eo + ", which has not yet committed."); } return localInstance; }