public static Inflector<ContainerRequestContext, Response> readHandler(final App a, final String type) {
		return new Inflector<ContainerRequestContext, Response>() {
			public Response apply(ContainerRequestContext ctx) {
				App app = (a != null) ? a : getPrincipalApp();
				ParaObject obj = ParaObjectUtils.toObject(type);
				obj.setId(pathParam(Config._ID, ctx));
				if (app.getId().equals(obj.getId())) {
					return getReadResponse(app, app);
				}
				return getReadResponse(app, getDAO().read(app.getAppIdentifier(), obj.getId()));
			}
		};
	}
public static Inflector < ContainerRequestContext , Response > readHandler ( final App a , final String type ) { return new Inflector < ContainerRequestContext , Response > ( ) { public Response apply ( ContainerRequestContext ctx ) { App app = ( a != null ) ? a : getPrincipalApp ( ) ; ParaObject obj = ParaObjectUtils . toObject ( type ) ; obj . setId ( pathParam ( Config . _ID , ctx ) ) ; if ( app . getId ( ) . equals ( obj . getId ( ) ) ) { return getReadResponse ( app , app ) ; } return getReadResponse ( app , getDAO ( ) . read ( app . getAppIdentifier ( ) , obj . getId ( ) ) ) ; } } ; }
@param a {@link App}
@param type a type
@return response