SLING-4175

Would this patch be acceptable to fix https://issues.apache.org/jira/browse/SLING-4175 ?