Reports incorrect <managed-bean> elements in Java Server Faces configuration files

Example:


 public class FooBean {
    public void setSomeProperty(String foo) {}
  }
  <faces-config >
    <managed-bean>
      <managed-bean-name>myBean</managed-bean-name>
      <managed-bean-class>beans.FooBean</managed-bean-class>
      <managed-bean-scope>application</managed-bean-scope>
      <managed-property>
        <property-name>someProperty</property-name> <!-- Managed Property must be of 'java.lang.String' type-->
        <property-class>my.company.BarClass</property-class>
        <null-value/>
      </managed-property>
    </managed-bean>
  </faces-config>