src/main/java/com/googlecode/objectify/ObjectifyFactory.java
public Objectify ofy() {
		final Deque<Objectify> stack = stacks.get();

		if (stack.isEmpty())
			throw new IllegalStateException("You have not started an Objectify context. You are probably missing the " +
					"ObjectifyFilter. If you are not running in the context of an http request, see the " +
					"ObjectifyService.run() method.");

		return stack.getLast();
	}
public Objectify ofy() {
		final Deque<Objectify> stack = stacks.get();

		if (stack.isEmpty())
			throw new IllegalStateException("You have not started an Objectify context. You are probably missing the " +
					"ObjectifyFilter. If you are not running in the context of an http request, see the " +
					"ObjectifyService.run() method.");

		return stack.getLast();
	}
public Objectify ofy ( ) { final Deque < Objectify > stack = stacks . get ( ) ; if ( stack . isEmpty ( ) ) throw new IllegalStateException ( "You have not started an Objectify context. You are probably missing the " + "ObjectifyFilter. If you are not running in the context of an http request, see the " + "ObjectifyService.run() method." ) ; return stack . getLast ( ) ; }
The method to call at any time to get the current Objectify, which may change depending on txn context.
Normally you should use the static {@link ObjectifyService#ofy()} which calls this method.
The method to call at any time to get the current Objectify which may change depending on txn context . Normally you should use the static {