class ResourceRequestBuilder {

    public static List<String> getResourceSequence(String serviceUuid) {

        List<String> resourceSequence = new ArrayList();
        try {
            Map<String, Object> serviceResponse = getServiceInstnace(serviceUuid);

            if (serviceResponse.containsKey("serviceResources")) {
                Map<String, Object> serviceResources = (Map<String, Object>) serviceResponse.get("serviceResources");

                if (serviceResources.containsKey("resourceOrder")) {
                    String resourceOrder = (String) serviceResources.get("resourceOrder");
                    if (resourceOrder != null) {
                        resourceSequence.addAll(Arrays.asList(resourceOrder.split(",")));
                    }
                }
            }
        } catch (Exception e) {
            logger.error("not able to retrieve service order.");
        }
        return resourceSequence;
    }

    private  ResourceRequestBuilder();

}