for (StandardUsernamePasswordCredentials c : CredentialsProvider.lookupCredentials(
StandardUsernamePasswordCredentials.class,
findItemGroup(context),
ACL.SYSTEM,
Collections.<DomainRequirement>emptyList())) {
<BUG>if (userName.equals(c.getUsername())
&& getPassword().equals(c.getPassword().getPlainText())) {
</BUG>
return c;
}

for (StandardUsernamePasswordCredentials c : CredentialsProvider.lookupCredentials(
StandardUsernamePasswordCredentials.class,
findItemGroup(context),
ACL.SYSTEM,
Collections.<DomainRequirement>emptyList())) {
if (userName.equals(c.getUsername()) && getPassword().equals(c.getPassword().getPlainText())) {
return c;
