OmeroContext ctx = OmeroContext.getManagedServerContext(); IQuery iQuery = (IQuery) ctx.getBean("internal:ome.api.IQuery"); return (Family) iQuery.findByString(Family.class, "value", value);
return (Family) iPixels.getEnumeration(Family.class, value);
    public static Family getFamily(String value)    {        OmeroContext ctx = OmeroContext.getManagedServerContext();        IQuery iQuery = (IQuery) ctx.getBean("internal:ome.api.IQuery");    	return (Family) iQuery.findByString(Family.class, "value", value);    }