Why did you throw all my annotations stuff ? Are you sure this will work ? The resource metadata will be created using the MetadataFactory of the johannes' library. I've already implemented it.