class BBInputSetup implements JavaDelegate {

    protected void mapPlatform(List<AAIResultWrapper> platforms, GenericVnf genericVnf) {
        if (!platforms.isEmpty()) {
            AAIResultWrapper platformWrapper = platforms.get(0);
            Optional<org.onap.aai.domain.yang.Platform> aaiPlatformOp =
                    platformWrapper.asBean(org.onap.aai.domain.yang.Platform.class);
            if (aaiPlatformOp.isPresent()) {
                Platform platform = this.mapperLayer.mapAAIPlatform(aaiPlatformOp.get());
                genericVnf.setPlatform(platform);
            }
        }
    }

}