container/profiles/src/main/java/org/mobicents/slee/container/profile/ProfileContextImpl.java
public ProfileLocalObject getProfileLocalObject()
			throws IllegalStateException, SLEEException {
		// check state
		if (profileObject == null
				|| profileObject.getState() == ProfileObjectState.PROFILE_INITIALIZATION
				|| profileObject.getProfileEntity() == null) {
			throw new IllegalStateException();
		}
		// check if it is default profile
		if (profileObject.getProfileEntity().getProfileName() == null) {
			throw new IllegalStateException();
		}
		return profileObject.getProfileLocalObject();
	}
public ProfileLocalObject getProfileLocalObject()
			throws IllegalStateException, SLEEException {
		// check state
		if (profileObject == null
				|| profileObject.getState() == ProfileObjectState.PROFILE_INITIALIZATION
				|| profileObject.getProfileEntity() == null) {
			throw new IllegalStateException();
		}
		// check if it is default profile
		if (profileObject.getProfileEntity().getProfileName() == null) {
			throw new IllegalStateException();
		}
		return profileObject.getProfileLocalObject();
	}
public ProfileLocalObject getProfileLocalObject ( ) throws IllegalStateException , SLEEException { // check state
 if ( profileObject == null || profileObject . getState ( ) == ProfileObjectState . PROFILE_INITIALIZATION || profileObject . getProfileEntity ( ) == null ) { throw new IllegalStateException ( ) ; } // check if it is default profile
 if ( profileObject . getProfileEntity ( ) . getProfileName ( ) == null ) { throw new IllegalStateException ( ) ; } return profileObject . getProfileLocalObject ( ) ; }
/*
(non-Javadoc)
@see javax.slee.profile.ProfileContext#getProfileLocalObject()
/ * ( non - Javadoc )