class ProcessorWebUtils {

    static ComponentDetails getComponentDetails(final NiFiWebConfigurationContext configurationContext,final String processorId,
                                                       final Long revision, final String clientId, HttpServletRequest request){

        final  NiFiWebRequestContext requestContext;

        if(processorId != null && revision != null && clientId != null){
            requestContext = getRequestContext(processorId, revision, clientId, request) ;
        } else{
            requestContext = getRequestContext(processorId,request);
        }

        return configurationContext.getComponentDetails(requestContext);

    }

}