final Long userId = CurrentDetails.getOwner().getId();
final Long userId = securitySystem.currentUserId();
	public RenderingDef retrieveRndSettings(final long pixId) {                final Long userId = CurrentDetails.getOwner().getId();        return (RenderingDef) iQuery.findByQuery(                " select rdef from RenderingDef rdef where " +                " rdef.pixels.id = :pixid and rdef.details.owner.id = :ownerid",                new Parameters().addLong("pixid",pixId).addLong("ownerid",userId));	}