code: static Object getLCState(StateManagerInternal sm)
  	{
  		// unfortunately the LifeCycleState classes are package private.
  		// so we have to do some dirty reflection hack to access them
  		try
  		{
  			Field myLC = sm.getClass().getDeclaredField("myLC");
  			myLC.setAccessible(true);
  			return myLC.get(sm);
  		}
  		catch (NoSuchFieldException e)
  		{
  			return e;
  		}
  		catch (IllegalAccessException e)
  		{
  			return e;
  		}	
  	}
docs: obtains the internal JDO lifecycle state of the input StatemanagerInternal.
  This Method is helpful to display persistent objects internal state.
  @param sm the StateManager to be inspected
  @return the LifeCycleState of a StateManager instance