Currently, Resources.getResourceByName(ConnectorResource.class, "jca/resource")
may return any BindableResource by name "jca/resource"
eg: there can be a AdminObjectResource (Which is a bindable resource) by name
"jca/resource" instead of Connector Resource in the system.
Fix will be to make sure that appropriate type is also looked for when the
resource-name matches and based on that the resource should be returned.