@Override public void validate(ShallowConnectAddonBean addonBean) throws InvalidDescriptorException { if (!addonBean.getAddonDependencies().isEmpty() && !dependenciesAreEnabled(addonBean.getKey())) { throw new InvalidDescriptorException( "Add-on dependencies are not enabled, hence the 'dependencies' property is not allowed!", "connect.install.error.dependencies.disabled"); } }