Changed the name of the method toJsonArray in the transformer classes,
in order to avoid the error below that appeared when passing to Java 7,
in the case of a class B extending a class A:
Name clash: The method toJsonArray(Collection<B>) of type B has the same
erasure as toJsonArray(Collection<A>) of type A but does not hide it