class WorkflowActionBBTasks {

    protected String getConfigurationId(Vnfc vnfc) throws Exception {
        Configuration configuration =
                workflowAction.getRelatedResourcesInVnfc(vnfc, Configuration.class, Types.CONFIGURATION);
        if (configuration != null) {
            return configuration.getConfigurationId();
        } else {
            return UUID.randomUUID().toString();
        }
    }

}