added support for Java collection types.