public mireka.address.RemotePart createRemotePartFromAST(
mireka.address.parser.ast.RemotePartAST remotePartAST) {
RemotePart remotePart;
if (remotePartAST instanceof DomainRemotePartAST) {
DomainRemotePartAST domainRemotePartAST =
(DomainRemotePartAST) remotePartAST;
Domain domain = new Domain(domainRemotePartAST.spelling);
remotePart = new DomainPart(domain);
} else if (remotePartAST instanceof AddressLiteralRemotePartAST) {
AddressLiteralRemotePartAST addressLiteralRemotePartAST =