Semaphored l = obj.getClass().getAnnotation(Semaphored.class); semaphore = new Semaphore(l.permits(), l.isFair());
return semaphore;