class OptionRepository extends AbstractRepository {

    /**
     * Option cache.
     */
    @Inject
    private OptionCache optionCache;

    /**
     * Public constructor.
     */
    public OptionRepository() {
        super(Option.OPTION);
    }

    @Override
    public void remove(final String id) throws RepositoryException {
        super.remove(id);

        optionCache.removeOption(id);
    }

    @Override
    public JSONObject get(final String id) throws RepositoryException {<FILL_FUNCTION_BODY>}

    @Override
    public void update(final String id, final JSONObject option, final String... propertyNames) throws RepositoryException {
        super.update(id, option, propertyNames);

        option.put(Keys.OBJECT_ID, id);
        optionCache.putOption(option);
    }
}

        JSONObject ret = optionCache.getOption(id);
        if (null != ret) {
            return ret;
        }

        ret = super.get(id);
        if (null == ret) {
            return null;
        }

        optionCache.putOption(ret);

        return ret;
    
<no_super_class>