try {
((BasicEndpoint)ep).setUser(getEnvironment().getSecondaryUsername());
((BasicEndpoint)ep).setPassword(getEnvironment().getSecondaryUserPassword());
ActivityStreamService svc = new ActivityStreamService(ep);
JsonJavaObject postPayload = new JsonJavaObject();
postPayload.put("content", "Notification message content");
String entryID = svc.postMicroblogEntry(getEnvironment().getCurrentUserUuid(), null, null, postPayload);
System.out.println("Created Notification Entry "+entryID);
} finally {
((BasicEndpoint)ep).setUser(getEnvironment().getCurrentUsername());
((BasicEndpoint)ep).setPassword(getEnvironment().getCurrentUserPassword());
}