221222223224225226227228229230231
* @param <T> * @param app * @return */ public <T extends Application> T addApplication(T app) { Application result = getApplication(app.getApplicationId()); // Double-check block if (result == null) { synchronized (this) { result = getApplication(app.getApplicationId());