Changed AMPSO to make use of Functional Java

Signed-off-by: Bennie Leonard <bennie.leonard@gmail.com>