public RemoteRepository create() {
RemoteRepository remoteRepository = new RemoteRepository();
remoteRepository.setUrl(artifactRepository.getUrl().toString());
PasswordCredentials credentials = artifactRepository.getCredentials();
String username = credentials.getUsername();
String password = credentials.getPassword();
if (username != null || password != null) {
Authentication authentication = new Authentication();
authentication.setUserName(username);
authentication.setPassword(password);