class ResourceRequestBuilder {

    @SuppressWarnings("unchecked")
    public static Map<String, Object> buildResouceRequest(Resource resource, Map<String, Object> uuiRequestInputs,
            Map<String, Object> currentVFData) {
        try {
            String resourceInputStr = null;
            // Resource Level is considered as first level by default
            ResourceLevel resourceLevel = ResourceLevel.FIRST;
            switch (resource.getResourceType()) {
                case VNF:
                    resourceInputStr = ((VnfResource) resource).getResourceInput();
                    resourceLevel = ResourceLevel.FIRST;
                    break;
                case GROUP:
                    resourceInputStr = ((GroupResource) resource).getVnfcs().get(0).getResourceInput();
                    resourceLevel = ResourceLevel.SECOND;
                    break;
            }

            if (StringUtils.isNotEmpty(resourceInputStr)) {
                return getResourceInput(resourceInputStr, uuiRequestInputs, resourceLevel, currentVFData);
            }

        } catch (Exception e) {
            logger.error("not able to retrieve service resource input ", e);
        }
        return new HashMap();
    }

    private  ResourceRequestBuilder();

}