public SAMInfo getSAMInfo() throws IMTPException {
try {
GenericCommand cmd = new GenericCommand(H_GETSAMINFO, SAMHelper.SERVICE_NAME, null);
Node n = getNode();
Object result = n.accept(cmd);
if (result instanceof IMTPException) {
throw (IMTPException)result;
}
else if (result instanceof Throwable) {
throw new IMTPException("An undeclared exception was thrown", (Throwable)result);