SubjectManagerLocal subjectMgr = LookupUtil.getSubjectManager();
Configuration params = new Configuration();
params.put(new PropertySimple("server", server.getAddress()));
ResourceOperationSchedule schedule = operationMgr.scheduleResourceOperation(subjectMgr.getOverlord(),
agent.getId(), "switchToServer", 0, 0, 0, 0, params, "Cloud Plugin: syncing server endpoint address");
if (log.isDebugEnabled()) {
log.debug("Schedule address sync for agent [name: " + agent.getName() + "].");
log.debug("Operation schedule is " + schedule);