Conversion of Java Generics to JavaFX sequence in Java Program