public final Status getStatus() {
Status retStatus = status; // the status we are returning
// check if the processor is monitorable
if (Monitorable.class.isInstance(connector)) {
Monitorable monitorable = (Monitorable) connector;
retStatus = monitorable.getStatus();
}
// resolve conflicts
if (retStatus.equals(Status.OK) && status.equals(Status.FAILED)) {
String message = status.getMessage();