* Obtain credentials from the request.
*
* @return the credential
*/
protected Credential obtainCredentials() {
final UsernamePasswordCredential c = new UsernamePasswordCredential();
final WebRequestDataBinder binder = new WebRequestDataBinder(c);
final RestletWebRequest webRequest = new RestletWebRequest(getRequest());
logFormRequest(new Form(getRequest().getEntity()));
binder.bind(webRequest);