@Nonnull public PropertySet getPropertySetForUserKey(@Nonnull String userKey) { final Long id = userKeyStore.getIdForUserKey(notNull("userKey", userKey)); if (id == null) { throw new IllegalStateException("There is no ID mapped for the user key '" + userKey + '\''); } return propertySetFactory.buildCachingPropertySet(ENTITY_TYPE, id); } }
projectPropertySet = jiraPropertySetFactory.buildCachingPropertySet("Project", project.getId(), true);