Worker java Skeleton