public static CachedBoxClient createBoxClient(final BoxConfiguration configuration) {
final String clientId = configuration.getClientId();
final String clientSecret = configuration.getClientSecret();
final IAuthSecureStorage authSecureStorage = configuration.getAuthSecureStorage();
final String userName = configuration.getUserName();
final String userPassword = configuration.getUserPassword();
if ((authSecureStorage == null && ObjectHelper.isEmpty(userPassword))
|| ObjectHelper.isEmpty(userName) || ObjectHelper.isEmpty(clientId) || ObjectHelper.isEmpty(clientSecret)) {