@Nonnull public PropertySet buildCachingPropertySet(final PropertySet propertySet, final boolean bulkLoad) { notNull("propertySet is a required parameter", propertySet); final PropertySet cachingPropertySet = createPropertySet("cached", FieldMap.build( "PropertySet", propertySet, "bulkload", bulkLoad)); if (cachingPropertySet instanceof JiraCachingPropertySet) { //noinspection CastToConcreteClass jiraCachingPropertySetManager.register((JiraCachingPropertySet) cachingPropertySet); } return cachingPropertySet; }