sPFLib/src/main/java/it/polimi/spf/lib/notification/SPFNotification.java
public List<SPFTrigger> listTrigger() {
		try {
			SPFError err = new SPFError(SPFError.NONE_ERROR_CODE);
			List<SPFTrigger> trgs = getService().listTrigger(getAccessToken(), err);
			if (!err.codeEquals(SPFError.NONE_ERROR_CODE)) {
				handleError(err);
			}
			return trgs;
		} catch (RemoteException e) {
			catchRemoteException(e);
			return new ArrayList<SPFTrigger>(0);
		}
	}
public List<SPFTrigger> listTrigger() {
		try {
			SPFError err = new SPFError(SPFError.NONE_ERROR_CODE);
			List<SPFTrigger> trgs = getService().listTrigger(getAccessToken(), err);
			if (!err.codeEquals(SPFError.NONE_ERROR_CODE)) {
				handleError(err);
			}
			return trgs;
		} catch (RemoteException e) {
			catchRemoteException(e);
			return new ArrayList<SPFTrigger>(0);
		}
	}
public List < SPFTrigger > listTrigger ( ) { try { SPFError err = new SPFError ( SPFError . NONE_ERROR_CODE ) ; List < SPFTrigger > trgs = getService ( ) . listTrigger ( getAccessToken ( ) , err ) ; if ( ! err . codeEquals ( SPFError . NONE_ERROR_CODE ) ) { handleError ( err ) ; } return trgs ; } catch ( RemoteException e ) { catchRemoteException ( e ) ; return new ArrayList < SPFTrigger > ( 0 ) ; } }
/*

FIXME callback should run in the main thread after the method
execution... ...concurrency problem in the client apps
/ *