@Override
    protected boolean isSecure(String key) {
        ArtifactPluginInfo pluginInfo = metadataStore().getPluginInfo(getPluginId());

        if (pluginInfo == null
                || pluginInfo.getStoreConfigSettings() == null
                || pluginInfo.getStoreConfigSettings().getConfiguration(key) == null) {
            return false;
        }

        return pluginInfo.getStoreConfigSettings().getConfiguration(key).isSecure();
    }
@Test
    public void postConstruct_shouldIgnoreEncryptionIfPluginInfoIsNotDefined() {
        ArtifactStore artifactStore = new ArtifactStore("id", "plugin_id", new ConfigurationProperty(new ConfigurationKey("password"), new ConfigurationValue("pass")));

        artifactStore.encryptSecureConfigurations();

        assertThat(artifactStore.size(), is(1));
        assertFalse(artifactStore.first().isSecure());
    }