class BBInputSetupUtils {

    public Optional<Configuration> getRelatedConfigurationByNameFromServiceInstance(String serviceInstanceId,
            String configurationName) {
        AAIPluralResourceUri uri = AAIUriFactory
                .createResourceUri(Types.SERVICE_INSTANCE.getFragment(serviceInstanceId))
                .relatedTo(Types.CONFIGURATIONS.getFragment()).queryParam("configuration-name", configurationName);
        return injectionHelper.getAaiClient().getOne(Configurations.class, Configuration.class, uri);
    }

}