package com.mitake.sms;

import org.apache.commons.lang3.StringUtils;

public class MitakeSms {
    private static String username;
    private static String password;
    private static MitakeSmsSender sender;

    public static void init(String username, String password) {
        if (StringUtils.isEmpty(username) || StringUtils.isEmpty(password)) {
            throw new IllegalArgumentException("Please press username and password");
        }

        MitakeSms.username = username;
        MitakeSms.password = password;
    }

    public static String getUsername() {
        return username;
    }

    public static String getPassword() {
        return password;
    }

    public static MitakeSmsResult send(String to, String message) {
        if (sender == null) {
            sender = new MitakeSmsSender();
        }

        return sender.send(to, message);
    }
}

@@ -203,16 +203,49 @@
  sender;
+%0A    private static boolean init;
 %0A%0A    pu
@@ -376,24 +376,51 @@
 assword)) %7B%0A
+            init = false;%0A%0A
             
@@ -573,32 +573,54 @@
 word = password;
+%0A%0A        init = true;
 %0A    %7D%0A%0A    publ
@@ -749,32 +749,32 @@
 assword;%0A    %7D%0A%0A
-
     public stati
@@ -821,24 +821,110 @@
  message) %7B%0A
+        if (!init) %7B%0A            throw new RuntimeException(%22Init first%22);%0A        %7D%0A%0A
         if (

Add more check