@Override
                public boolean shouldHostBeRemoved(final String hostname)
                        throws AmbariException {
                  return ! maintenanceStateHelper.isOperationAllowed(
                          cluster, actionContext.getOperationLevel(),
                          resourceFilter, serviceName, componentName, hostname);
                }
Add tasks to the stage based on the requested action execution
@param actionContext
@param stage
@param requestParams
@param checkHostIsMemberOfCluster if true AmbariException will be thrown in case host is not member of cluster.
@throws AmbariException
ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariActionExecutionHelper.java